package com.yunlongcoding.cahuomarketing.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员订单表（用于记录会员订单基础信息）
 */
public class ChmOrder implements Serializable {

    private static final long serialVersionUID = -4650461568021987059L;

    // 主键id
    private Long id;

    // 会员id
    private Long memberId;

    // 收货地址id
    private Long receivingAddressId;

    // 订单付款时间
    private Date paymentTime;

    // 订单发货时间
    private Date sendOutTime;

    // 交易完成时间
    private Date businessEndTime;

    // 订单关闭时间
    private Date businessCloseTime;

    // 物流名称
    private String logisticsName;

    // 物流单号
    private String logisticsCode;

    // 订单状态
    private Short status;

    // 订单号
    private String orderNumber;

    // 快递费
    private Long expressFee;

    // 付款类型
    private Short paymentType;

    // 微信支付金额
    private BigDecimal paymentWechat;

    // 积分支付数量
    private BigDecimal paymentIntegral;

    // 消费金（余额）付款额
    private BigDecimal paymentConsumerMoney;

    // 实付金额（包括微信支付+积分支付+消费金支付，1:1:1）
    private BigDecimal payment;

    // 订单所属商城（0：商城  1：积分商城）
    private Short belongTo;

    // 买家留言
    private String buyerMessage;

    // 买家昵称
    private String buyerNickname;

    // 订单创建时间
    private Date createTime;

    // 订单更新时间
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getReceivingAddressId() {
        return receivingAddressId;
    }

    public void setReceivingAddressId(Long receivingAddressId) {
        this.receivingAddressId = receivingAddressId;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getSendOutTime() {
        return sendOutTime;
    }

    public void setSendOutTime(Date sendOutTime) {
        this.sendOutTime = sendOutTime;
    }

    public Date getBusinessEndTime() {
        return businessEndTime;
    }

    public void setBusinessEndTime(Date businessEndTime) {
        this.businessEndTime = businessEndTime;
    }

    public Date getBusinessCloseTime() {
        return businessCloseTime;
    }

    public void setBusinessCloseTime(Date businessCloseTime) {
        this.businessCloseTime = businessCloseTime;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName == null ? null : logisticsName.trim();
    }

    public String getLogisticsCode() {
        return logisticsCode;
    }

    public void setLogisticsCode(String logisticsCode) {
        this.logisticsCode = logisticsCode == null ? null : logisticsCode.trim();
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber == null ? null : orderNumber.trim();
    }

    public Long getExpressFee() {
        return expressFee;
    }

    public void setExpressFee(Long expressFee) {
        this.expressFee = expressFee;
    }

    public Short getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Short paymentType) {
        this.paymentType = paymentType;
    }

    public BigDecimal getPaymentWechat() {
        return paymentWechat;
    }

    public void setPaymentWechat(BigDecimal paymentWechat) {
        this.paymentWechat = paymentWechat;
    }

    public BigDecimal getPaymentIntegral() {
        return paymentIntegral;
    }

    public void setPaymentIntegral(BigDecimal paymentIntegral) {
        this.paymentIntegral = paymentIntegral;
    }

    public BigDecimal getPaymentConsumerMoney() {
        return paymentConsumerMoney;
    }

    public void setPaymentConsumerMoney(BigDecimal paymentConsumerMoney) {
        this.paymentConsumerMoney = paymentConsumerMoney;
    }

    public BigDecimal getPayment() {
        return payment;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public Short getBelongTo() {
        return belongTo;
    }

    public void setBelongTo(Short belongTo) {
        this.belongTo = belongTo;
    }

    public String getBuyerMessage() {
        return buyerMessage;
    }

    public void setBuyerMessage(String buyerMessage) {
        this.buyerMessage = buyerMessage == null ? null : buyerMessage.trim();
    }

    public String getBuyerNickname() {
        return buyerNickname;
    }

    public void setBuyerNickname(String buyerNickname) {
        this.buyerNickname = buyerNickname == null ? null : buyerNickname.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}